import request from '@/utils/request'

// 查询班级管理列表
export function listClass() {
  return request({
    url: '/student/class/list',
    method: 'get',
  })
}

// 查询教师管理列表
export function listTeacherManagement() {
  return request({
    url: '/teacher/teacherManagement/list',
    method: 'get',
  })
}

// 查询关注列表列表
export function listAttention(query) {
  return request({
    url: '/eduadmin/attention/list',
    method: 'get',
    params: query
  })
}

// 查询学生详情列表
export function listStudentDetail() {
  return request({
    url: '/student/studentDetail/list',
    method: 'get',
  })
}


// 查询教学追踪列表
export function listTeacherTrace(query) {
  return request({
    url: '/eduadmin/teacherTrace/list',
    method: 'get',
    params: query
  })
}

// 查询教学追踪详细
export function getTeacherTrace(id) {
  return request({
    url: '/eduadmin/teacherTrace/' + id,
    method: 'get'
  })
}

// 新增教学追踪
export function addTeacherTrace(data) {
  return request({
    url: '/eduadmin/teacherTrace',
    method: 'post',
    data: data
  })
}

// 修改教学追踪
export function updateTeacherTrace(data) {
  return request({
    url: '/eduadmin/teacherTrace',
    method: 'put',
    data: data
  })
}

// 删除教学追踪
export function delTeacherTrace(id) {
  return request({
    url: '/eduadmin/teacherTrace/' + id,
    method: 'delete'
  })
}


// 根据班级id查询学生
export function getStudentByClassId() {
  return request({
    url: '/student/studentMessage/findStudentNameByClassId',
    method: 'get'
  })
}

